#ifndef BW_BASE64_H_
#define BW_Base64_H_

namespace bwcgi
{

class Base64
{
public:
	Base64();
	virtual ~Base64();
	bool is_base64(unsigned char c) ;
	std::string base64_encode(unsigned char const*bytes_to_encode , unsigned int in_len);
	int dec2Image(std::string const& encoded_string,char* filename);
private:
	 const std::string base64_chars =
	             "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
	             "abcdefghijklmnopqrstuvwxyz"
	             "0123456789+/";

};

} /* namespace bwcgi */

#endif /* BW_Base64_H_ */
